<?php
    $menu = [
        ['name' => '用户管理', 'url' => '/admin/user'],
        ['name' => '角色管理', 'url' => '/admin/role'],
    ];
?>
<ul>
    <?php foreach ($menu as $item): ?>
        <li><a href="<?php echo $item['url']; ?>"><?php echo $item['name']; ?></a></li>
    <?php endforeach; ?>
</ul>
